cmake_minimum_required(VERSION 3.5.1)
project(SeqStack)

set(STACK_SRC seqstack.c)

add_library(LSeqStack STATIC ${STACK_SRC})
set_target_properties(LSeqStack PROPERTIES OUTPUT_NAME lseqstack)

add_library(lseqstack SHARED ${STACK_SRC})

if(LINUX)
	install(TARGETS LSeqStack ARCHIVE DESTINATION ${INSTALL_DIR}/lib/liblds)
	install(TARGETS lseqstack LIBRARY DESTINATION ${INSTALL_DIR}/lib/${CMAKE_LIBRARY_ARCHITECTURE})
	install(FILES ${INCLUDE_DIR}/Stack/seqstack.h DESTINATION ${INSTALL_DIR}/include/liblds)
endif()
